﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using HsTec.DigitalPlatform.DataAccess;

namespace HsTec.DigitalPlatform.Business
{
    public class GradeInfoManager
    {
        GradeInfoRepository gradeinforepository = new GradeInfoRepository();

        public void Add(GradeInfo gradeinfo)
        {
            gradeinforepository.Add(gradeinfo);
        }

        public void Delete(GradeInfo gradeinfo)
        {
            gradeinforepository.Delete(gradeinfo);
        }

        public void Save()
        {
            gradeinforepository.Save();
        }

        public GradeInfo GetGradeInfoByID(int id)
        {
            return gradeinforepository.GetGradeInfoByID(id);
        }

        public IQueryable<GradeInfo> FindALLGradeInfo()
        {
            return gradeinforepository.FindALLGradeInfo();
        }

        public IQueryable<GradeInfo> PageInfo(int page, int rp, string sortname, string sortorder)
        {
            return gradeinforepository.PageInfo(page, rp, sortname, sortorder);
        }

        public int GetAllCount()
        {
            return gradeinforepository.GetAllCount();
        }
    }
}
